#pragma once
#include "AccountImpl.h"

class StockAccount_t : public AccountImpl {
	friend class AccountFactory;
public:
	~StockAccount_t() {
		m_bank->Detach(this);
	}

	virtual int getAccountType() const {
		return Stock_e;
	}

private:
	StockAccount_t(Bank_t* b, int percent, int date, int period) : AccountImpl(b, percent, date, period) {
		m_bank->Attach(this);
	}
};
